//
//  ModelOfForum_thread_listEntry.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/12.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfForum_thread_listEntry.h"

@implementation ModelOfForum_thread_listEntry
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr = [NSMutableArray array];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    } if ([key isEqualToString:@"is_top"]) {
        self.is_top = [value integerValue];
    } if ([key isEqualToString:@"digest_level"]) {
        self.digest_level  =[value integerValue];
    } if ([key isEqualToString:@"heated_discuss"]) {
        self.heated_discuss = [value integerValue];
    } if ([key isEqualToString:@"lastpost"]) {
        self.lastpost = [value integerValue];
    } if ([key isEqualToString:@"user_id"]) {
        self.user_id = [value integerValue];
    } if ([key isEqualToString:@"publish_time"]) {
        self.publish_time = [value integerValue];
    } if ([key isEqualToString:@"forum_type"]) {
        self.forum_type = [value integerValue];
    }if ([key isEqualToString:@"photoarr"]) {
        for (NSString *string in value) {
            [arr addObject:string];
        }
        self.photoarr = arr;
    }
}
@end
